package stdying.handyweibo.injection.module;

import com.sina.weibo.sdk.auth.Oauth2AccessToken;

import dagger.Module;
import dagger.Provides;
import stdying.handyweibo.injection.PreActivity;
import stdying.handyweibo.presenter.MainActivityPresenter;
import stdying.handyweibo.rest.WeiboShowService;
import stdying.handyweibo.rest.WeiboUserService;
import stdying.handyweibo.view.IMainView;

/**
 * Description: MainActivityPresenterModule
 * Author: liulili
 * Created: 2015-11-24
 */

@Module
public class MainActivityPresenterModule {
    @Provides
    @PreActivity
    MainActivityPresenter provideMainActivityPresenter(IMainView mainView,WeiboUserService weiboUserService,WeiboShowService weiboShowService,Oauth2AccessToken oauth2AccessToken){
        return new MainActivityPresenter(mainView, oauth2AccessToken, weiboUserService,weiboShowService);
    }
}
